package s2elinshu;

import java.util.Scanner;

public class J10Circle {
	public static void main(String[] args) {
		double r, area, perim;
		final double PI = 3.14;

		r = inputR(makeScanner());
		area = getArea(r, PI);
		perim = getPerim(r, PI);

		System.out.println("반지름은" + r);
		System.out.println("면적은" + area);
		System.out.println("둘레는" + perim);


	}// main 닫음

	private static double inputR(Scanner sc) {
		double r;
		System.out.println("반지름값을 입력하세요");
		r = sc.nextDouble();
		sc.close();
		return r;
	}

	// scanner 생성
	public static Scanner makeScanner() {
		Scanner sc = new Scanner(System.in);
		return sc;
	}

	// scanner 소멸
	public static void closeScanner(Scanner sc) {
		sc.close();
	}

	private static double getPerim(double r, double PI) {
		return (r * 2 * PI);
	}

	private static double getArea(double r, double PI) {
		return (r * r * PI);
	}

}// class 닫음
